package com.castle.fortress.admin.exchange.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 兑换中心设置 实体类
 *
 * @author whc
 * @since 2022-12-05
 */
@Data
@ApiModel(value = "exchangeConfig对象", description = "兑换中心设置")
public class ExchangeConfigDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "唯一主键")
	@JsonProperty("id")
	private Long id;
	@ApiModelProperty(value = "卡券名称")
	@JsonProperty("name")
	private String name;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "兑换开始时间")
	@JsonProperty("startTime")
	private Date startTime;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "兑换截至时间")
	@JsonProperty("endTime")
	private Date endTime;
	@ApiModelProperty(value = "最大兑换件数")
	@JsonProperty("maximum")
	private Integer maximum;
	@ApiModelProperty(value = "兑换券类型")
	@JsonProperty("type")
	private Integer type;
	@ApiModelProperty(value = "扫码绑定")
	@JsonProperty("isBind")
	private Integer isBind;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "创建者")
	@JsonProperty("createUser")
	private Long createUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "创建时间")
	@JsonProperty("createTime")
	private Date createTime;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "更新者")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "更新时间")
	@JsonProperty("updateTime")
	private Date updateTime;
	@ApiModelProperty(value = "状态")
	@JsonProperty("status")
	private Integer status;
	@ApiModelProperty(value = "删除状态")
	@JsonProperty("isDeleted")
	private Integer isDeleted;
	@ApiModelProperty(value = "商品ID")
	@JsonProperty("goodsId")
	private String goodsId;
	@ApiModelProperty(value = "邮费类型")
	@JsonProperty("postageType")
	private Integer postageType;
	@ApiModelProperty(value = "邮费")
	@JsonProperty("postage")
	private BigDecimal postage;
	@ApiModelProperty(value = "创建者姓名")
	@JsonProperty("createUserName")
	private String createUserName;

	@ApiModelProperty(value = "跳转链接")
	@JsonProperty("url")
	private String url;


}
